package jm.data.structure.queue;

/**
 * @Description 循环队列测试
 * @date 2022/4/8 9:32
 */
public class MainCircleQueue {
    public static void main(String[] args) {
        CircleQueue<Integer> queue = new CircleQueue<>();
        for (int i = 0; i < 15; i++) {
            queue.enQueue(i);
        }
        for (int i = 0; i < 5; i++) {
            queue.deQueue();
        }

        while (!queue.isEmpty()){
            System.out.println(queue.deQueue());
        }
    }
}
